package service.impl;

import dao.IBookDao;
import dao.impl.BookDaoImpl;
import pojo.Book;
import service.IBookService;

import java.util.List;

public class BookServiceImpl implements IBookService {
	
	//查询所有图书
	public List<Book> queryAll() throws Exception {
		IBookDao bookDao= (IBookDao) new BookDaoImpl();
		return bookDao.queryAll();
	}
}
